#include<bits/stdc++.h>

using namespace std;

int main() {
    char x;
    cin >> x;
    if ('9' >= x && x >= '0') {//isdigit(x)
        cout << "digit" << endl;//'0' '9'
    }
    if ('Z' >= x && x >= 'A') {//isupper
        cout << "uppercase" << endl;
    }
    if ('z' >= x && x >= 'a') {//islower
        cout << "lowercase" << endl;
    }
    return 0;
}
